package com.echoplots.thymeleaf.controller;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.echoplots.thymeleaf.entity.User;

@Controller
public class IndexController {
	
    @RequestMapping("/user")
    public String index(Model m) {
        List<User> list = new ArrayList<User>();
        list.add(new User("KangKang", "康康", "e10adc3949ba59abbe56e", "超级管理员", "17777777777"));
        list.add(new User("Mike", "麦克", "e10adc3949ba59abbe56e", "管理员", "13444444444"));
        list.add(new User("Jane","简","e10adc3949ba59abbe56e","运维人员","18666666666"));
        list.add(new User("Maria", "玛利亚", "e10adc3949ba59abbe56e", "清算人员", "19999999999"));
        m.addAttribute("userList",list);
        return "user";
    }
}
